'''
Created on 20 mai 2011

@author: shin
'''
import unittest
from business.DamierStatus import DamierStatus
from stub.Damier           import Damier
from stub.DaoDamier        import DaoDamier

class Test(unittest.TestCase):

    def setUp(self):
        self.damierStatus = DamierStatus(Damier(DaoDamier("essaiTerrain")))

    def tearDown(self):
        del self.damierStatus

    def test_init_width(self):
        self.assertEqual(self.damierStatus.width, 1)

    def test_init_heigth(self):
        self.assertEqual(self.damierStatus.height, 1)
        
    def test_init_cases(self):
        self.assertEqual(len(self.damierStatus.cases), 80)


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()